go/types.Map.key (field)
26 uses
go/types (current package)
builtins.go#L436: if key != nil && !Identical(map_.key, key) {
builtins.go#L440: key = map_.key
index.go#L119: check.assignment(&key, typ.key, "map index")
index.go#L157: k = t.key
infer.go#L620: return w.isParameterized(t.key) || w.isParameterized(t.elem)
infer.go#L772: w.typ(t.key)
literals.go#L276: keyIsInterface := isNonTypeParamInterface(utyp.key)
literals.go#L284: check.genericExpr(x, kv.Key, utyp.key)
literals.go#L285: check.assignment(x, utyp.key, "map literal")
map.go#L12: key, elem Type
map.go#L17: return &Map{key: key, elem: elem}
map.go#L21: func (m *Map) Key() Type { return m.key }
predicates.go#L459: return c.identical(x.key, y.key, p) && c.identical(x.elem, y.elem, p)
range.go#L237: return typ.key, typ.elem, "", true
subst.go#L306: key := subst.typ(t.key)
subst.go#L308: if key != t.key || elem != t.elem {
subst.go#L309: return &Map{key: key, elem: elem}
typestring.go#L256: w.typ(t.key)
typexpr.go#L341: typ.key = check.varType(e.Key)
typexpr.go#L351: if !Comparable(typ.key) {
typexpr.go#L353: if isTypeParam(typ.key) {
typexpr.go#L356: check.errorf(e.Key, IncomparableMapKey, "invalid map key type %s%s", typ.key, why)
typexpr.go#L358: }).describef(e.Key, "check map key %s", typ.key)
unify.go#L733: return u.nify(x.key, y.key, emode, p) && u.nify(x.elem, y.elem, emode, p)